﻿using BCCommon;
using BCDto.OA.AuxiliaryRule;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.OA.AuxiliaryRule
{
    /// <summary>
    /// OA系统辅助规则
    /// </summary>
	public interface IAuxiliaryRuleService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="auxiliaryRuleId">OA系统辅助规则Id</param>
        bool Exists(long auxiliaryRuleId);
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="auxiliaryRuleName">OA系统辅助规则名称</param>
        bool Exists(string auxiliaryRuleName);
        /// <summary>
        /// 添加OA系统辅助规则
        /// </summary>
        /// <param name="requestDto">OA系统辅助规则信息</param>
        AuxiliaryRuleDto Add(AuxiliaryRuleRequestDto requestDto);
        /// <summary>
        /// 更新OA系统辅助规则
        /// </summary>
        /// <param name="putDto">OA系统辅助规则信息</param>
        AuxiliaryRuleDto Update(AuxiliaryRulePutDto putDto);
        /// <summary>
        /// 删除OA系统辅助规则
        /// </summary>
        /// <param name="auxiliaryRuleId">OA系统辅助规则Id</param>
        bool Delete(long auxiliaryRuleId);
        /// <summary>
        /// 获取OA系统辅助规则
        /// </summary>
        /// <param name="auxiliaryRuleId">OA系统辅助规则Id</param>
        AuxiliaryRuleDto GetEntity(long auxiliaryRuleId);
        /// <summary>
        /// 获取OA系统辅助规则
        /// </summary>
        /// <param name="pageBusinessMappingDepartmentId">页面业务映射部门Id</param>
        /// <returns></returns>
        AuxiliaryRuleDto GetEntityByPageBusinessConfigId(long pageBusinessMappingDepartmentId);
        /// <summary>
        /// 获取OA系统辅助规则列表
        /// </summary>
        IEnumerable<AuxiliaryRuleDto> GetList();
        /// <summary>
        /// 获取OA系统辅助规则分页列表
        /// </summary>
        /// <param name="auxiliaryRuleName">OA系统辅助规则名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">OA系统辅助规则每页数据条数</param>
        PageableList<AuxiliaryRuleDto> Query(string auxiliaryRuleName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
